<template>
  <div class="c-pt160 c-flex-column c-aligni-center">
    <div class="c-p c-text-hidden c-bg-xgreen c-ww110 c-hh110 c-brp50 c-flex-row c-flex-center">
      <i class="iconfont c-fc-white c-fs60">&#xe76c;</i>
      <div class="success-ani c-bg-xgreen c-ww110 c-hh110 c-brp50"></div>
    </div>
    <div class="c-pt40 c-fs28">请点击「返回」完成此核验</div>
    <div class="c-pt20 c-fs26 c-fc-gray">*请勿直接关闭页面</div>
    <div
      @click="clickClose"
      class="c-mt80 c-ww440 c-hh80 c-br40 c-flex-row c-flex-center c-fs28 c-fc-white theme-bg"
    >
      返回
    </div>
  </div>
</template>
<script>
import { utilJs } from "@/utils/common.js";
export default {
  name: "shopAuthResult",
  data() {
    return {
      checkRes: 0, // 0等待中 1认证成功 -1认证失败
    };
  },
  created() {
    setDocumentTitle("个人信息审核");
    this._session = this.$route.query.session || '';
    this.comfirmAuth();
  },
  methods: {
    comfirmAuth() {
      let cId = utilJs.getCompanyIdByHerf();
      utilJs.getMethod(`${global.apiurl}admin/common/cloud/getDetectInfo?companyId=${cId}&session=${this._session}`);
    },
    clickClose() {
      window.WeixinJSBridge.call("closeWindow");
    },
  },
};
</script>
<style scoped>
.success-ani{
  position: absolute;
  left: 0;
  top: 0;
  animation: moveriht 1s forwards;
}
@keyframes moveriht {
  0% { transform: translateX(0); }
  100% {  transform: translateX(100%)}
}
</style>
